<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">
        <title>我的收藏</title>
        <link href="__MZUI__/css/admin.css" rel="stylesheet" type="text/css">
        <link href="__MZUI__/css/amazeui.css" rel="stylesheet" type="text/css">
        <link href="__CSS__/user/personal.css" rel="stylesheet" type="text/css">
        <link href="__CSS__/user/colstyle.css" rel="stylesheet" type="text/css">
        <link href="__CSS__/common.css" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="__JQ__"></script>
        <script type="text/javascript" src="__LY__"></script>
        <script type="text/javascript" src="__JS__/public.lib.js"></script>
    </head>
    <body>
        <!--头 -->
    <include file="Include/top" />
    <include file="Include/header" />
    <div class="center">
        <div class="col-main">
            <div class="main-wrap">

                <div class="user-collection">
                    <!--标题 -->
                    <div class="am-cf am-padding">
                        <div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">我的收藏</strong> / <small>My&nbsp;Collection</small></div>
                    </div>
                    <hr/>
                    <div class="you-like">
                        <div class="s-content">
                            <foreach item="v" name="fav">
                            <div class="s-item-wrap">
                                <div class="s-item">
                                    <div class="s-pic">
                                        <a href="#" class="s-pic-link">
                                            <img src="{$v['goods']['goods_thumb']}!400x400" height="186" width="186" alt="{$v['goods']['goods_title']}" title="{$v['goods']['goods_title']}" class="s-pic-img s-guess-item-img">
                                        </a>
                                    </div>
                                    <div class="s-info">
                                        <div class="s-title"><a href="#" title="{$v['goods']['goods_title']}">{$v['goods']['goods_title']}</a></div>
                                        <div class="s-price-box">
                                            <span class="s-price"><em class="s-price-sign">¥</em><em class="s-value">{$v['goods']['goods_price']}</em></span>
                                            <span class="s-history-price"><em class="s-price-sign">¥</em><em class="s-value">{$v['goods']['goods_markprice']}</em></span>
                                        </div>
                                    </div>
                                    <div class="s-tp">
                                        <span class="ui-btn-loading-before" onclick="delClick({$v['fav_id']});">取消收藏</span>
                                        <i class="am-icon-shopping-cart"></i>
                                        <span class="ui-btn-loading-before buy">加入购物车</span>
                                    </div>
                                </div>
                            </div>
                            </foreach>
                        </div>
                        <div class="s-more-btn i-load-more-item" data-screen="0"><i class="am-icon-refresh am-icon-fw"></i>更多</div>
                    </div>
                </div>
            </div>
        </div>
        <include file="Include/navigation" />
    </div>
    <include file="Include/footer" />
</body>
</html>
<script type="text/javascript">
    function delClick(fav_id){
        layer.confirm('确认取消吗？', {
          btn: ['确认','算了'] //按钮
        }, function(){
            var data = {fav_id:fav_id};
            p = Aajax("{:U('/Collection/delColl')}", data);
            if(p.status){
                layer.msg(p.info);
                window.location.reload();
            }else{
                layer.msg(p.info);
            }
        });
    }
</script>